<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
	</head>

	<body>
		<pre>
        事件修饰符
            产生原因：让开发者声明的方法中专注于业务逻辑的开发，而不用关注DOM细节，
                     同时提高开发体验性

            .stop  阻止冒泡行为
            .prevent  阻止浏览器默认行为
    </pre>

		<div id="app">
			<a @click.stop="handle">跳转</a>
			<a @click.prevent="handle1">跳转1</a>
		</div>

		<script src="/scripts/vue.js"></script>
		<script>
			var vm = new Vue({
				el: '#app',
				data: {
					num: 3,
				},
				methods: {
					handle(e) {
						console.log(e)
					},
					handle1(e) {
						console.log(e)
					},
				},
			})
		</script>
	</body>
</html>
